<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=b270168e9b76d3413e43884350b161ff&sql=SELECT+%2A+FROM+v9_poster+WHERE+spaceid+%3D+2+AND+type%3D%27images%27+AND+disabled%3D0+ORDER+BY+listorder+ASC&num=10\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("SELECT * FROM v9_poster WHERE spaceid = 2 AND type='images' AND disabled=0 ORDER BY listorder ASC LIMIT 10");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?> 
  <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
     <?php
     $arr= (array)json_decode($r['setting']);
     foreach ($arr as $key => $val){
              $imageurl = $val->imageurl;
              $linkurl = $val->linkurl;
              $alt = $val->alt;
        }
     ?>
     <div class="nybanner" style="background: url(<?php echo $imageurl; ?>) no-repeat center;"></div>
  <?php $n++;}unset($n); ?>
  <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
<section class="key-serch">
  <div class="tem_inner">
    <div class="met_position">您当前的位置： <a href="<?php echo siteurl($siteid);?>">首页</a><span> > </span><?php echo catpos($catid);?></div>
    <div class="search" id="headSearch">
      <form action="<?php echo APP_PATH;?>index.php" method="get">
        <input type="hidden" name="m" value="search"/>
        <input type="hidden" name="c" value="index"/>
        <input type="hidden" name="a" value="init"/>
        <input type="hidden" name="typeid" value="1" id="typeid"/>
        <input type="hidden" name="siteid" value="<?php echo $siteid;?>" id="siteid"/>
        <span class="navsearch_input">
        <input type="text" name="q" size="20" placeholder="请输入搜索关键词">
        </span>
        <button type="submit" class="searchgo"><i class="fa fa-search" aria-hidden="true"></i></button>
      </form>
    </div>
  </div>
</section>
